﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001329 RID: 4905
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TakeBpRewardScRsp : IMessage<TakeBpRewardScRsp>, IMessage, IEquatable<TakeBpRewardScRsp>, IDeepCloneable<TakeBpRewardScRsp>, IBufferMessage
	{
		// Token: 0x17003DE1 RID: 15841
		// (get) Token: 0x0600DB92 RID: 56210 RVA: 0x0024C1ED File Offset: 0x0024A3ED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TakeBpRewardScRsp> Parser
		{
			get
			{
				return TakeBpRewardScRsp._parser;
			}
		}

		// Token: 0x17003DE2 RID: 15842
		// (get) Token: 0x0600DB93 RID: 56211 RVA: 0x0024C1F4 File Offset: 0x0024A3F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TakeBpRewardScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003DE3 RID: 15843
		// (get) Token: 0x0600DB94 RID: 56212 RVA: 0x0024C206 File Offset: 0x0024A406
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TakeBpRewardScRsp.Descriptor;
			}
		}

		// Token: 0x0600DB95 RID: 56213 RVA: 0x0024C20D File Offset: 0x0024A40D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeBpRewardScRsp()
		{
		}

		// Token: 0x0600DB96 RID: 56214 RVA: 0x0024C218 File Offset: 0x0024A418
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeBpRewardScRsp(TakeBpRewardScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600DB97 RID: 56215 RVA: 0x0024C264 File Offset: 0x0024A464
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeBpRewardScRsp Clone()
		{
			return new TakeBpRewardScRsp(this);
		}

		// Token: 0x17003DE4 RID: 15844
		// (get) Token: 0x0600DB98 RID: 56216 RVA: 0x0024C26C File Offset: 0x0024A46C
		// (set) Token: 0x0600DB99 RID: 56217 RVA: 0x0024C274 File Offset: 0x0024A474
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17003DE5 RID: 15845
		// (get) Token: 0x0600DB9A RID: 56218 RVA: 0x0024C27D File Offset: 0x0024A47D
		// (set) Token: 0x0600DB9B RID: 56219 RVA: 0x0024C285 File Offset: 0x0024A485
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x0600DB9C RID: 56220 RVA: 0x0024C28E File Offset: 0x0024A48E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TakeBpRewardScRsp);
		}

		// Token: 0x0600DB9D RID: 56221 RVA: 0x0024C29C File Offset: 0x0024A49C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TakeBpRewardScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.Reward, other.Reward) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600DB9E RID: 56222 RVA: 0x0024C2EC File Offset: 0x0024A4EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600DB9F RID: 56223 RVA: 0x0024C341 File Offset: 0x0024A541
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600DBA0 RID: 56224 RVA: 0x0024C349 File Offset: 0x0024A549
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600DBA1 RID: 56225 RVA: 0x0024C354 File Offset: 0x0024A554
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.Retcode);
			}
			if (this.reward_ != null)
			{
				output.WriteRawTag(66);
				output.WriteMessage(this.Reward);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600DBA2 RID: 56226 RVA: 0x0024C3B0 File Offset: 0x0024A5B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600DBA3 RID: 56227 RVA: 0x0024C408 File Offset: 0x0024A608
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TakeBpRewardScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600DBA4 RID: 56228 RVA: 0x0024C470 File Offset: 0x0024A670
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600DBA5 RID: 56229 RVA: 0x0024C47C File Offset: 0x0024A67C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 40U)
				{
					if (num != 66U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.reward_ == null)
						{
							this.Reward = new ItemList();
						}
						input.ReadMessage(this.Reward);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005738 RID: 22328
		private static readonly MessageParser<TakeBpRewardScRsp> _parser = new MessageParser<TakeBpRewardScRsp>(() => new TakeBpRewardScRsp());

		// Token: 0x04005739 RID: 22329
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400573A RID: 22330
		public const int RetcodeFieldNumber = 5;

		// Token: 0x0400573B RID: 22331
		private uint retcode_;

		// Token: 0x0400573C RID: 22332
		public const int RewardFieldNumber = 8;

		// Token: 0x0400573D RID: 22333
		private ItemList reward_;
	}
}
